/*
 * motion_event.h
 *
 *  Created on: 30 May 2012
 *      Author: hframe
 */

#ifndef MOTION_EVENT_H_
#define MOTION_EVENT_H_

#include <android/input.h>

#include "../../common.h"


startnamespace(androidplus)
startnamespace(input)
startnamespace(event)

class motion_event {
public:
	motion_event(const AInputEvent * _event);
	virtual ~motion_event();
public://functions
	 t_int64 get_downtime()const;
			      t_int32 get_edgeflags()const;
			      t_int64 get_eventtime()const;
			      t_int32 get_flags()const;
			      t_size get_pointercount()const;
			      t_size get_historysize()const;
			      t_int32 get_metastate()const;
			      const t_float *const get_orientation()const;
			      const t_float *const get_pressure()const;
			      const t_int32 * get_pointerid()const;
			      const t_float *const get_rawx()const;
			      const t_float *const get_rawy()const;
			      const t_float *const get_size()const;
			      const t_float *const get_toolmajor()const;
			      const t_float *const get_toolminor()const;
			      const t_float *const get_touchmajor()const;
			      const t_float *const get_touchminor()const;
			      const t_float *const get_x()const;
			      const t_float *const get_y()const;
			       t_float get_xoffset()const;
			       t_float get_xprecision()const;
			      t_float get_yoffset()const;
			      t_float get_yprecision()const;
private:

		      t_int64 downtime;
		      t_int32 edgeflags;
		      t_int64 eventtime;
		      t_int32 flags;
		      t_size pointercount;
		      t_size historysize;
		      t_int32 metastate;
		      t_float *orientation;
		      t_float *pressure;
		      t_int32* pointerid;
		      t_float *rawx;
		      t_float *rawy;
		      t_float *size;
		      t_float *toolmajor;
		      t_float *toolminor;
		      t_float *touchmajor;
		      t_float *touchminor;
		      t_float *x;
		      t_float *y;
		      t_float xoffset;
		      t_float xprecision;
		      t_float yoffset;
		      t_float yprecision;


};

endnamespace(event)
endnamespace(input)
endnamespace(androidplus)
#endif /* MOTION_EVENT_H_ */
